Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: ExMonobank.MerchantAPI #20

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

sveredyuk
Copy link

@romkor I Just started extracting my code into ExMonobank.MerchantAPI. Work in progress, but we can start the discussion right now )

Copy link
Owner

@romkor romkor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!
I have mixed fillings about Invoice module name, not clear that it is mutation DTO.
But I can live with it.
WDYT?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, just typo in file name:
cancel_invoice_failure_with_inbvalid_id.json
should be:
cancel_invoice_failure_with_invalid_id.json

@sveredyuk
Copy link
Author

Good job! I have mixed feelings about Invoice module name, not clear that it is mutation DTO. But I can live with it. WDYT?

Me too. We need clear separate request structs and response structs. I'm just bad at naming :)
ExMonobank.Invoice - request struct
ExMonobank.InvoiceInfo - response structs

{:ok, invoice_info} =
  %{amount: 100}
  |> ExMonobank.Invoice.new()
  |> MerchantAPI.create_invoice()

I am open to any suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants